package leetcode.code0026;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution0026 implements IDebug {

	public abstract int removeDuplicates(int[] nums);

	@Override
	public void debug1() {
		String str1 = "[1,1,2]";
		String str2 = "[1,2]";
		int e = 2;
		debug(str1, str2, e);
	}

	private void debug(String str1, String str2, int e) {
		int[] nums = HelpDebug.str2array3(str1);
		int[] nums1 = HelpDebug.str2array3(str2);
		int r = this.removeDuplicates(nums);
		HelpDebug.compare(e, r);
		HelpDebug.compare(nums, nums1);
	}

	@Override
	public void debug2() {
		String str1 = "[0,0,1,1,1,2,2,3,3,4]";
		String str2 = "[0,1,2,3,4]";
		int e = 5;
		debug(str1, str2, e);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
